﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CreateQuote.aspx.cs" Inherits="TotalSport.CreateQuote"
    Theme="default" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register TagName="header" TagPrefix="uc" Src="~/Header.ascx" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>::Create New Quotes::</title>
    <link href="Styles/Stylsheet.css" rel="stylesheet" type="text/css" />
    <link href="Styles/Popup.css" rel="stylesheet" type="text/css" />
    <script src="Scripts/jquery-1.4.1-vsdoc.js" type="text/javascript"></script>
    <script src="Scripts/jquery-1.4.1.js" type="text/javascript"></script>
    <script src="Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
    <script src="Scripts/jquery-1.3.2.js" type="text/javascript"></script>
    <script src="Scripts/jquery-1.4.2.min.js" type="text/javascript"></script>
    <script src="Scripts/jquery-ui-1.7.2.custom.min.js" type="text/javascript"></script>
    <script type="text/javascript">

        $(document).ready(function () {
            // Tabs
            $('#tabs').tabs({ selected: 0 });
            $('#tabs').bind('tabsshow', function (event, ui) {
                var tabSelected = "#tab" + ui.index + "Selected";
                $(tabSelected).html("isClicked");
            });

            $('#aa_lnkCreateQuote').css({ color: '#FF0001' });


        });
    </script>
    <script type="text/javascript">

        function OnlyAlphabets(evt) {
            var charCode = evt.keyCode;
            if (charCode == 8 || //backspace
                charCode == 46 || //delete
                charCode == 13)   //enter key
            {
                return true;
            }
            else if (charCode >= 37 && charCode <= 40) //arrow keys
            {
                return true;
            }
            else if (charCode >= 65 && charCode <= 91) //a-z on num pad
            {
                return true;
            }
            else
                return false;
        }

        function textboxMaxNumber(txt, maxLen) {
            try {
                if (txt.value.length > (maxLen - 1)) return false;
            } catch (e) {
            }
        }
        function hidemsg() {
            var advance = document.getElementById("txtAdvance");
            var lbl = document.getElementById("lblmsg");

            if (advance.value == "100") {
                // alert('');

                lbl.innerHTML = "";
            }
            else {

                lbl.innerHTML = "and balance on delivery";
            }

        }
        function setRowBackColor(checkBox, className) {
            if (checkBox.checked)
                checkBox.parentNode.parentNode.className = 'HighlightedRow';
            else
                checkBox.parentNode.parentNode.className = className;
        }

        function changeVAT() {

            var ddl = document.getElementById("ddlCategory");
            var chkbox = document.getElementById("chkVAT");

            if (ddl.value == "Indoor") {

                chkVAT.nextSibling.innerHTML = 'on text';
            }
        }

        function focused() {

            var aaa = document.getElementById("spnMsg");
            aaa.style.display = "none";
        }
        function isNumberKey(evt) {
            var charCode = (evt.which) ? evt.which : event.keyCode
            if (charCode > 31 && (charCode < 48 || charCode > 57))
                return false;
        }
        function SelectRow(Id) {

            {
                document.getElementById(Id).parentNode.parentNode.style.backgroundColor = '#284775';
            }
        }
        function checkAll(objRef) {
            var GridView = objRef.parentNode.parentNode.parentNode;
            var inputList = GridView.getElementsByTagName("input");
            for (var i = 0; i < inputList.length; i++) {
                //Get the Cell To find out ColumnIndex 
                var row = inputList[i].parentNode.parentNode;
                if (inputList[i].type == "checkbox" && objRef != inputList[i]) {
                    if (objRef.checked) {
                        //If the header checkbox is checked 
                        //check all checkboxes 
                        //and highlight all rows 
                        row.style.backgroundColor = "#DEEDFE";
                        inputList[i].checked = true;
                    }
                    else {
                        //If the header checkbox is checked 
                        //uncheck all checkboxes 
                        //and change rowcolor back to original  
                        if (row.rowIndex % 2 == 0) {
                            //Alternating Row Color 
                            row.style.backgroundColor = "#C3DEFD";
                        }
                        else {
                            row.style.backgroundColor = "white";
                        }
                        inputList[i].checked = false;
                    }
                }
            }
        }

        function CalculateDiscount(currentPrice, disPert, txtSpRate) {
            var username = $(currentPrice).innerText;
            var cc = document.getElementById(currentPrice).innerText;
            var finalprice = cc - (cc * (disPert / 100))
            document.getElementById(txtSpRate).value = finalprice;
        }

    </script>
    <style type="text/css">
        .HighlightedRow
        {
            background-color: LightBlue;
        }
    </style>
    <style type="text/css">
        .style1
        {
            height: 22px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    </asp:ToolkitScriptManager>
    <center>
        <div>
            <uc:header runat="server" ID="aa" />
        </div>
        <br />
    </center>
    <center>
        <br />
        <%--<asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1">
            <ProgressTemplate>
                <center>
                    <div id="pageLoading">
                        <center>
                            <img src="Images/loading .gif" style="z-index: 5000; top: 50%; left: 50%; position: absolute;"
                                alt="loading" />
                            <div style="color: White; font-size: 18px; top: 50%; left: 50%;">
                                Loading...
                            </div>
                        </center>
                        <div id="transparentBg" class="transparentBg">
                        </div>
                    </div>
                </center>
       </ProgressTemplate>
        </asp:UpdateProgress>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
            <ContentTemplate>--%>
        <fieldset style="width: 700px; color: #054287; text-align: left">
            <legend>Create Quotation</legend>
            <table cellpadding="0" cellspacing="0">
                <tr>
                    <td>
                        <table border="0" cellpadding="3" cellspacing="0">
                            <tr>
                                <td>
                                    <span id="spnMsg" class="spanMsgs" style="display: none" runat="server"></span>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <table cellpadding="0" cellspacing="3" width="700px">
                                        <tr>
                                            <td align="left" valign="top" width="250px">
                                                <asp:Label ID="lblname" runat="server" Text="Enter The Recipient Name :" CssClass="lableform">  </asp:Label>
                                                <br />
                                                <asp:DropDownList ID="ddlPrefix" runat="server" SkinID="prefix">
                                                    <asp:ListItem Selected="True" Text="Mr." Value="Mr.">
                                                    </asp:ListItem>
                                                    <asp:ListItem Text="Mrs." Value="Mrs.">
                                                    </asp:ListItem>
                                                    <asp:ListItem Text="Ms." Value="Ms."></asp:ListItem>
                                                </asp:DropDownList>
                                                <asp:TextBox ID="txtToName" runat="server" onfocus="focused()"></asp:TextBox><br />
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Enter the Receipient Name :"
                                                    ControlToValidate="txtToName" SetFocusOnError="true" ValidationGroup="4level"
                                                    CssClass="validators "></asp:RequiredFieldValidator>
                                            </td>
                                            <td align="left" valign="top">
                                                <asp:Label ID="Label9" runat="server" Text="  Company Name :" CssClass="lableform"></asp:Label>
                                                <br />
                                                <asp:TextBox ID="txtCompanyName" runat="server"></asp:TextBox><br />
                                                <span>
                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ErrorMessage="Enter Company Name :"
                                                        ControlToValidate="txtCompanyName" SetFocusOnError="true" ValidationGroup="4level"
                                                        CssClass="validators "></asp:RequiredFieldValidator></span>
                                            </td>
                                            <td align="left" valign="top">
                                                <asp:Label ID="Label10" runat="server" Text="  Email ID :" CssClass="lableform"></asp:Label>
                                                <br />
                                                <asp:TextBox ID="txtEmailID" runat="server"></asp:TextBox>
                                                <div>
                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ErrorMessage="Enter EmailID :"
                                                        ControlToValidate="txtEmailID" SetFocusOnError="true" ValidationGroup="4level"
                                                        CssClass="validators "></asp:RequiredFieldValidator>
                                                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ErrorMessage="Enter Valid EmailID :"
                                                        ControlToValidate="txtEmailID" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                                                        ValidationGroup="4level" CssClass="validators" SetFocusOnError="true"></asp:RegularExpressionValidator>
                                                </div>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                Contact Number :<br />
                                                <asp:TextBox ID="txtCno" runat="server" onkeypress="return isNumberKey(event)" MaxLength="16"></asp:TextBox><br />
                                                <asp:RequiredFieldValidator ValidationGroup="4level" ID="RequiredFieldValidator2"
                                                    runat="server" ErrorMessage="Enter Contact Number :" ControlToValidate="txtCno"
                                                    CssClass="validators" SetFocusOnError="true"></asp:RequiredFieldValidator>
                                            </td>
                                            <td align="left" valign="top">
                                                Location :<br />
                                                <asp:DropDownList SkinID="location" ID="ddllocation" runat="server">
                                                </asp:DropDownList>
                                            </td>
                                            <td align="left" valign="top">
                                                Select TemplateName:
                                                <asp:DropDownList ID="ddltemplate" runat="server" OnSelectedIndexChanged="ddltemplate_SelectedIndexChanged"
                                                    AutoPostBack="True">
                                                </asp:DropDownList>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="3">
                                                <hr />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="left" valign="top">
                                                <asp:Label ID="Label11" runat="server" Text="    Reference Number :" CssClass="lableform"
                                                    Style="font-weight: bold; color: Maroon"></asp:Label>
                                                <asp:Label ID="lblRefNo" runat="server" Text="Label"></asp:Label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="right" valign="top">
                                                <asp:Label ID="Label12" runat="server" Text="  Category :" CssClass="lableform"></asp:Label>
                                            </td>
                                            <td colspan="2">
                                                <asp:DropDownList ID="ddlCategory" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlCategory_SelectedIndexChanged"
                                                    Height="20px">
                                                    <%--   <asp:ListItem Text="----Select Category----" Value="-1"  Selected="True" ></asp:ListItem>--%>
                                                </asp:DropDownList>
                                                <span id="spncategory" runat="server" class="validators" style="display: none"></span>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="right" valign="top">
                                                <asp:Label ID="Label13" runat="server" Text="  SubCategory :" CssClass="lableform"></asp:Label>
                                            </td>
                                            <td colspan="2">
                                                <asp:DropDownList ID="ddlsubCategory" runat="server" OnSelectedIndexChanged="ddlsubCategory_SelectedIndexChanged"
                                                    AppendDataBoundItems="True" AutoPostBack="True">
                                                </asp:DropDownList>
                                                <span id="spnSubcategory" runat="server" class="validators" style="display: none">
                                                </span>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="right" width="150px">
                                                Particulars Name :
                                            </td>
                                            <td>
                                                <asp:DropDownList ID="ddlParticularName" runat="server" AppendDataBoundItems="True"
                                                    OnSelectedIndexChanged="ddlParticularName_SelectedIndexChanged" AutoPostBack="True">
                                                </asp:DropDownList>
                                                <span id="spnParticularNm" runat="server" class="validators" style="display: none">
                                                </span>
                                                <%--"--%>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="right" width="150px">
                                                Brand Name :
                                            </td>
                                            <td>
                                                <asp:DropDownList ID="ddlBrandName" runat="server" AppendDataBoundItems="True" AutoPostBack="True"
                                                    OnSelectedIndexChanged="ddlBrandName_SelectedIndexChanged">
                                                </asp:DropDownList>
                                                <span id="spnBrandName" runat="server" class="validators" style="display: none">
                                                </span>
                                                <%--OnSelectedIndexChanged="ddlParticularName_SelectedIndexChanged"--%>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="right">
                                                Disoucnt Rate :
                                            </td>
                                            <td>
                                                <asp:TextBox ID="txtdsctRateforall" runat="server" SkinID="dsctrate" onkeydown="return isNumberKey(event)"
                                                onkeypress="return textboxMaxNumber(this,3);"></asp:TextBox>(
                                                in %)
                                            </td>
                                            <td>
                                                <asp:Button ID="btn4levelsubmit" ValidationGroup="4level" runat="server" Text="Submit"
                                                    OnClick="btn4levelsubmit_Click" Style="height: 26px" />
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                            <tr>
                                <td class="style1">
                                    <table>
                                        <tr>
                                            <td>
                                                <%--<span id="spnmsg" runat="server" style="display:none"/> --%>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:GridView ID="grdAllProducts" runat="server" AutoGenerateColumns="False" CellPadding="3"
                                                    ForeColor="Black" GridLines="Vertical"  Width="700px" BorderColor="#999999"
                                                    BorderWidth="1px" BackColor="White" BorderStyle="Solid" OnPageIndexChanging="grdAllProducts_PageIndexChanging"
                                                    OnSelectedIndexChanging="grdAllProducts_SelectedIndexChanging" EmptyDataText="No Data Found"
                                                    DataKeyNames="SubId" OnRowDataBound="grdAllProducts_RowDataBound">
                                                    <%-- <AlternatingRowStyle BackColor="#DDE7FB" />--%>
                                                    <Columns>
                                                        <asp:BoundField DataField="Name" HeaderText="Particular Name" />
                                                        <asp:BoundField DataField="BrandName" HeaderText="Brand Name" />
                                                        <asp:BoundField DataField="ItemCode" HeaderText="Item Code" />
                                                        <asp:TemplateField HeaderText="Price">
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblid" Text='<%#bind("Price") %>' runat="server"></asp:Label>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <%--   <asp:BoundField DataField="Price" HeaderText="Price" />--%>
                                                        <asp:TemplateField HeaderText="Select Product">
                                                            <ItemTemplate>
                                                                <asp:CheckBox ID="chksSelect" CausesValidation="false" runat="server" onclick="SelectRow(this.id)" />
                                                            </ItemTemplate>
                                                            <HeaderTemplate>
                                                                <asp:CheckBox runat="server" CausesValidation="false" ID="HeaderLevelCheckbox" OnClick="checkAll(this);" />
                                                            </HeaderTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="Discount Rate">
                                                            <ItemTemplate>
                                                                <asp:TextBox ID="txtDsctRte" runat="server" TabIndex="1" Enabled="false" MaxLength="3"
                                                                    Text='<%#bind("DsctRate") %>' SkinID="dsctrate"></asp:TextBox>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="Spl.Rate">
                                                            <ItemTemplate>
                                                                <asp:TextBox ID="txtfinalprice" Enabled="false" TabIndex="2" runat="server" Text='<%#bind("FinalPrice") %>'
                                                                    MaxLength="5"></asp:TextBox>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <%--  <asp:TemplateField HeaderText="Remove">
                                                        <ItemTemplate>    Text='<%#bind("FinalPrice") %>'                                                      
                                                            <asp:LinkButton ID="lnkRemove" runat="server" CausesValidation="false" CommandName="RemovePro"onblur="CalculateDiscount('<%=lblid.ClientID %>','this.value','<%=txtfinalprice.ClientID %>');"
                                                        OnCommand="ShowRemoveProduct">Remove</asp:LinkButton>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>--%>
                                                    </Columns>
                                                    <EmptyDataRowStyle BackColor="#CC3300" />
                                                    <FooterStyle BackColor="#CCCCCC" />
                                                    <HeaderStyle BackColor="#045E84" Font-Bold="True" ForeColor="White" />
                                                    <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
                                                    <SelectedRowStyle CssClass="gridSelectedRowStyle" BackColor="#FF9933" Font-Bold="True"
                                                        ForeColor="White" />
                                                    <SortedAscendingCellStyle BackColor="#F1F1F1" />
                                                    <SortedAscendingHeaderStyle BackColor="#808080" />
                                                    <SortedDescendingCellStyle BackColor="#CAC9C9" />
                                                    <SortedDescendingHeaderStyle BackColor="#383838" />
                                                </asp:GridView>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:Button ID="btnAddProduct" runat="server" Text="Select from above and Click here to Add Product"
                                                    OnClick="btnAddProduct_Click" Style="height: 26px; width: 421px;" />
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div style="width: 700px">
                        </div>
                    </td>
                </tr>
                <tr>
                    <td align="left">
                        <fieldset>
                            <legend>Notes :</legend>
                            <table>
                                <tr>
                                    <td>
                                        <asp:CheckBox ID="chkVAT" runat="server" Text="VAT will be charged extra(As Per Subcategory)" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:CheckBox ID="chkAdvance" runat="server" Text="Advance " />
                                        <asp:TextBox ID="txtAdvance" onkeydown="return isNumberKey(event)"
                                                onkeypress="return textboxMaxNumber(this,3);" runat="server"
                                            SkinID="notestxt" MaxLength="3" onchange="hidemsg()"></asp:TextBox>
                                        <asp:RangeValidator Display="None" Type="Integer" ID="RangeValidator1" runat="server"
                                            ErrorMessage="Should be between 0 to 100" MinimumValue="0" MaximumValue="100"
                                            ControlToValidate="txtAdvance"></asp:RangeValidator>
                                        <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender4" runat="server" TargetControlID="RangeValidator1">
                                        </asp:ValidatorCalloutExtender>
                                        <asp:RequiredFieldValidator Display="None" ValidationGroup="savesend" ID="RequiredFieldValidator5"
                                            runat="server" ErrorMessage="Enter Advance Amount " ControlToValidate="txtAdvance"
                                            SetFocusOnError="true"></asp:RequiredFieldValidator>
                                        <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender1" runat="server" TargetControlID="RequiredFieldValidator5">
                                        </asp:ValidatorCalloutExtender>
                                        <asp:Label ID="Label8" runat="server" Text="(%)  with P.O. "></asp:Label>
                                        <asp:Label ID="lblmsg" runat="server" Text=" and balance on delivery"></asp:Label>
                                    </td>
                                </tr>
                                    <tr>
                    <td>
                        <asp:CheckBox ID="chkDelivaryCharge" runat="server" Text="Delivery Charges " />
                        <asp:TextBox ID="txtDeliveryChanrge" runat="server" SkinID="notestxt" onkeydown="return isNumberKey(event)"
                                                onkeypress="return textboxMaxNumber(this,3);"></asp:TextBox>
                        <asp:RequiredFieldValidator Display="None" ID="RequiredFieldValidator6" runat="server"
                            ValidationGroup="savesend" ErrorMessage="Enter Delivery charge Amount" ControlToValidate="txtDeliveryChanrge"
                            SetFocusOnError="true"></asp:RequiredFieldValidator>
                        <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender2" runat="server" TargetControlID="RequiredFieldValidator6">
                        </asp:ValidatorCalloutExtender>
                        <asp:Label ID="txtlnl" runat="server" Text="(`)Will be Extra" Style="font-family: Rupee Foradian"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:CheckBox ID="chkUrgentD" runat="server" Text="Delivery within" />
                        <asp:TextBox ID="txtdelivarywithin" runat="server" SkinID="notestxt" onkeydown="return isNumberKey(event)"
                                                onkeypress="return textboxMaxNumber(this,3);"></asp:TextBox>
                        <asp:RequiredFieldValidator Display="None" ControlToValidate="txtdelivarywithin"
                            ID="RequiredFieldValidator7" runat="server" ValidationGroup="savesend" ErrorMessage="Enter Delivery Charges"
                            SetFocusOnError="true"></asp:RequiredFieldValidator>
                        <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender3" TargetControlID="RequiredFieldValidator7"
                            runat="server">
                        </asp:ValidatorCalloutExtender>
                        <asp:Label ID="Label6" runat="server" Text=" days from P.O."></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:CheckBox ID="chkChquename" runat="server" Text="Cheque  shall be drawn in favour of <b><u>'Total Sporting And Fitness Solutions Pvt. Ltd.'</u></b>" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:CheckBox ID="chkValidity" runat="server" Text="Validity of Quotation is ." />
                        <asp:TextBox ID="txtvalidity" runat="server" SkinID="notestxt" onkeydown="return isNumberKey(event)"
                                                onkeypress="return textboxMaxNumber(this,3);"></asp:TextBox>
                        <asp:RequiredFieldValidator Display="None" ControlToValidate="txtvalidity" ID="RequiredFieldValidator3"
                            runat="server" ValidationGroup="savesend" ErrorMessage="Enter Validity" SetFocusOnError="true"></asp:RequiredFieldValidator>
                        <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender5" TargetControlID="RequiredFieldValidator3"
                            runat="server">
                        </asp:ValidatorCalloutExtender>
                        <asp:Label ID="Label14" runat="server" Text=" days."></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:CheckBox ID="chkoctroi" runat="server" Text="All prices quoted are Ex-Works, freight, insurance,octroi, taxes and levies will be charged extra as applicable."
                            OnCheckedChanged="chkoctroi_CheckedChanged" />
                    </td>
                </tr>
                            </table>
                        </fieldset>
                    </td>
                </tr>
            
                <tr>
                    <td>
                        <asp:Button ID="btnDone" runat="server" Text="Save & Send" OnClick="btnDone_Click"
                            ValidationGroup="savesend" Style="width: 90px" />
                        <asp:Button ID="btnsave" runat="server" Text="Save " Style="width: 48px" OnClick="btnsave_Click" />
                        <asp:Button ID="btntemplate" runat="server" Text="Save Template" Style="width: 110px"
                            OnClick="btntemplate_Click" ValidationGroup="SaveT" />&nbsp;&nbsp;&nbsp;&nbsp;Enter
                        Template Name:
                        <asp:TextBox ID="txttemplateName" runat="server" MaxLength="50" onkeydown="return OnlyAlphabets(event);"></asp:TextBox><br />
                        <span style="padding-left: 407px">
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" class="validators"
                                ControlToValidate="txttemplateName" ErrorMessage="Please,Enter Template Name"
                                ValidationGroup="SaveT"></asp:RequiredFieldValidator></span>
                        <%--<span id="spanMsg1" runat="server" class="spanErrorMsgs" style="display: none;">
                        </span>--%>
                    </td>
                </tr>
            </table>
        </fieldset>
        <asp:Button ID="btnHidd" runat="server" Style="display: none" />
        <asp:ModalPopupExtender ID="ModalPopupExtender2" runat="server" TargetControlID="btnHidd"
            CancelControlID="cancelBtnEdit1" PopupControlID="pnlTranfer" BackgroundCssClass="modalBackground">
        </asp:ModalPopupExtender>
        <asp:Panel ID="pnlTranfer" runat="server">
            <div style="width: 750px; height: 400px" class="ModalPopup">
                <%--<asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">
                            <ContentTemplate>--%>
                <table style="text-align: right" width="700px">
                    <tr>
                        <td align="right">
                            <img src="Images/newsletter_close.PNG" alt="close" height="16" width="16" runat="server"
                                id="cancelBtnEdit1" />
                        </td>
                    </tr>
                    <tr>
                        <td style="font-family: Verdana; font-size: 15px; color: Blue" align="left">
                            Quote Details
                        </td>
                    </tr>
                </table>
                <table width="700px" border="1" style="background-color: #0070BA; color: White">
                    <tr>
                        <td width="100px">
                            SR.No
                        </td>
                        <td width="560px" align="center">
                            Particulars
                        </td>
                        <td width="80px" style="font-family: Rupee Foradian">
                            Rate (`)
                        </td>
                        <td width="95px" style="font-family: Rupee Foradian">
                            Spl.Price(`)
                        </td>
                        <td>
                            <asp:Label ID="lblRemove" runat="server" Text="Remove"></asp:Label>
                        </td>
                    </tr>
                </table>
                <asp:Repeater ID="rptQuot" runat="server" OnItemDataBound="rptQuot_ItemDataBound">
                    <ItemTemplate>
                        <table border="1" cellpadding="3" cellspacing="3" width="700px">
                            <tr>
                                <td width="80px">
                                    <asp:Label ID="lblsrno" runat="server" Text=""></asp:Label>
                                </td>
                                <td width="350px">
                                    <asp:Label ID="Label1" runat="server" Text='<%# Bind("ParticularName") %>'></asp:Label>
                                </td>
                                <td width="100px">
                                    <asp:Label ID="Label2" runat="server" Text='<%# Bind("BrandName") %>'></asp:Label>
                                </td>
                                <td width="120px">
                                    <asp:Label ID="Label3" runat="server" Text='<%# Bind("ItemCode") %>'></asp:Label>
                                </td>
                                <td width="80px">
                                    <asp:Label ID="Label4" runat="server" Text='<%# Bind("Price") %>'></asp:Label>
                                </td>
                                <td width="80px">
                                    <asp:Label ID="Label7" runat="server" Text='<%# Bind("DscoutPrice") %>'></asp:Label>
                                </td>
                                <td>
                                    <asp:LinkButton ID="lnkRemove" runat="server" CausesValidation="false" CommandName="RemovePro"
                                        OnCommand="ShowRemoveProduct">Remove</asp:LinkButton>
                                </td>
                            </tr>
                            <tr>
                                <td width="80px">
                                    <img src="Images/<%# Eval("Picture") %>" height="50" width="50" />
                                </td>
                                <td colspan="6">
                                    <asp:Label ID="Label5" runat="server" Text='<%# Bind("Description") %>'></asp:Label>
                                    <asp:HiddenField ID="Bindid" Value='<%# Bind("QuoteID") %>' Visible="true" runat="server" />
                                </td>
                            </tr>
                        </table>
                    </ItemTemplate>
                </asp:Repeater>
                <%--</ContentTemplate>
                            <Triggers>
                                <asp:AsyncPostBackTrigger ControlID="btnAddProduct" EventName="Click" />
                            </Triggers>
                        </asp:UpdatePanel>--%>
            </div>
        </asp:Panel>
       
        <%-- </ContentTemplate>
            <Triggers>
                <asp:AsyncPostBackTrigger ControlID="btnAddProduct" EventName="Click" />
            </Triggers>
        </asp:UpdatePanel>--%>
    </center>
    <center>
        <div>
        </div>
    </center>
    <center>
    </center>
    </form>
</body>
</html>
